//
//  NSObject+Common.h
//  WhatEat
//
//  Created by Sunflower on 2018/7/14.
//  Copyright © 2018年 Sunflower. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface NSObject (Common)

//SVProgressHUD
- (void)showProcessingHudWithMessage:(NSString *)message;
- (void)showInfoWithStatusHudWithMessage:(NSString *)message;
- (void)dismissHudWithDelay:(NSTimeInterval)delay;
- (void)showProcessingHud;
- (void)showSuccessHudWithMessage:(NSString *)message;
- (void)showErrorHudWithMessage:(NSString *)message;
- (void)dismissHud;

#pragma mark - 获取当前时间
- (NSString *)getTime:(NSDate *)date Formatter:(NSString *)str;


- (UIImage *)scaleToSize:(UIImage *)image size:(CGSize)size;
@end
